<?php

$password = "admin123";
$encode = password_hash($password, PASSWORD_DEFAULT);

echo "Encoded password: " . $encode . "\n";

$encostr = '$2y$10$qzusVJchWEHMnFq2kya7qO8kviOTm4u5JyOWP4Bt8dn5PksLFJ0ya';

if (password_verify($password, $encostr)) {
    echo "Password is valid\n";
} else {
    echo "Password is not valid\n";
}
?>